Skip to content

Update flamed enemies with an overlay like ice (rebased) #3242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Hypernoot
Copy link
Member

a successor of #3133

@Frostwithasideofsalt
Copy link
Member

imma test this

Copy link
Contributor

@MatusGuy MatusGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code lgtm

@@ -173,9 +188,21 @@ BadGuy::draw(DrawingContext& context)
}
else
{
if (m_frozen && is_portable())
if (m_frozen && is_portable()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (m_frozen && is_portable()) {
if (m_frozen && is_portable())
{

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment on lines 199 to 206
if (m_state == STATE_BURNING) {
// draw the flame sprite
m_firesprite->draw(context.color(), draw_pos, m_layer);
}
else {
/*m_firesprite->set_frame(0);
m_firesprite->pause_animation();*/
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (m_state == STATE_BURNING) {
// draw the flame sprite
m_firesprite->draw(context.color(), draw_pos, m_layer);
}
else {
/*m_firesprite->set_frame(0);
m_firesprite->pause_animation();*/
}
if (m_state == STATE_BURNING)
{
m_firesprite->draw(context.color(), draw_pos, m_layer);
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Member

@Frostwithasideofsalt Frostwithasideofsalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still has the same issue as last time, that being..

https://github.com/user-attachments/assets/1debf75e-41b9-4c98-8eeb-2818121e40d4
there also seems to be an issue with some enemy sprites randomly offseting. some enemies ive found to do this are

mr tree and stumpy + corrupted variants
igel
vicious icy and walking leaf + corrupted variants
snail + corrupted variant
corrupted jumpy

the swimming fish + varitants, chasing fish + variants, skullyhops, pumpkin and bumpkin, leafshot + corrupted variant, owl, wooden jumpy, zeekling, corrupted igel, and jumping fish all do not have the offset issue seemingly.
also, the forest chasing fish will turn into the icy island chasing fish while burning.

@Frostwithasideofsalt
Copy link
Member

also shouldnt we get a water slash overlay for snow enemies? as i doubt theres gonna be unique melting animations drawn for them all.

@Hypernoot
Copy link
Member Author

I fixed the weird offsets, hopefully.

Melting animations would be nice to have but let's leave it for a different PR. Maybe a water splash animation would do the job.

@Frostwithasideofsalt
Copy link
Member

would test but all the builds are failing

@Hypernoot Hypernoot force-pushed the fireoverlay-hypernoot branch from 463b8ea to 490e4f4 Compare May 24, 2025 09:48
Copy link
Member

@Frostwithasideofsalt Frostwithasideofsalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yayyy the offesets work. also im thinking, for 0.7 could we just have it so snow enemies also have the fire overlay? it wouldnt make much sense, but with the speed of progress lately it would be good as it saves us a fair bit of time

@Hypernoot
Copy link
Member Author

For melting animations, I suggest just changing the colour to blue and call it a day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants